package com.itheima.web.service.impl.pms;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.service.pms.ProductAttributeService;
import com.itheima.vo.pms.PmsProductAttribute;
import com.itheima.vo.pms.ProductAttributeDto;
import com.itheima.web.mapper.pms.ProductAttributeMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class ProductAttributeServiceImpl extends ServiceImpl<ProductAttributeMapper, PmsProductAttribute> implements ProductAttributeService {

    @Autowired
    private ProductAttributeMapper productAttributeMapper;

    @Override
    public List<PmsProductAttribute> pageInfo(int pageNum, int pageSize, Integer cid, int type) {
        return productAttributeMapper.pageInfo(pageNum,pageSize,cid,type);
    }

    @Override
    public List<ProductAttributeDto> selectByProductCategoryId(Integer productCategoryId) {
        return productAttributeMapper.selectByProductCategoryId(productCategoryId);
    }

    @Override
    public List<PmsProductAttribute> pageInfoBy(Integer cid, Integer type) {
        return productAttributeMapper.pageInfoBy(cid,type);
    }
}
